-- GENERATED SPELL FOR [Gan'arg Mekgineer] --


function spell0_16949(pUnit, Event) --@Drain Life,Drain--
pUnit:FullCastSpellOnTarget(36825,pUnit:GetRandomPlayer(0))
pUnit:RegisterEvent('Sorts_16949', 5000, 1)
end

function spell1_16949(pUnit, Event) --@Steal Weapon,n/a--
pUnit:FullCastSpellOnTarget(36208,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16949', 6320, 1)
end

function Sorts_16949(pUnit, Event)
local choix_sorts_16949 = math.random(0, 1)
if choix_sorts_16949 == 0 then
pUnit:RegisterEvent('spell0_16949', 1, 1)
end
if choix_sorts_16949 == 1 then
pUnit:RegisterEvent('spell1_16949', 1, 1)
end
end

function mob16949_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16949', math.random(1500, 3000), 1)
end

function mob16949_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16949_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16949_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16949, 1, 'mob16949_Action')
RegisterUnitEvent(16949, 2, 'mob16949_Leave')
RegisterUnitEvent(16949, 3, 'mob16949_Kill')
RegisterUnitEvent(16949, 4, 'mob16949_Die')
